public class MyRunnable implements Runnable {
    Student student;
    public MyRunnable(Student student) {
        this.student = student;
    }
    @Override
    public void run() {
//        Student student = new Student();
        student.setName("Tomcat");
    }
}
